#ifndef CCLIENTBOOK_H
#define CCLIENTBOOK_H

#include "socket\protocol\gps.h"
#include "inetworking.h"

class CCarRequestPassengers : public INetWorking
{
public:
    CCarRequestPassengers(QObject *parent = 0);
    ~CCarRequestPassengers();

public:
    virtual void prepareWriteData(QByteArray* block, void* param);
    virtual bool prepareReadData(QTcpSocket *pTcpSocket, protocal::BasePtc *basePtc);
    virtual void formResult();

private:
    //out
    QString carID;

    QString client_id;
    short align;
    protocal::GPS start_point;
    protocal::GPS terminal_point;
    short timeout;  //the longest time the passenger can wait for
    short honesty_degree;
};

#endif // CCLIENTBOOK_H
